<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>index页面</title>
</head>
<body>
	<%-- java脚本段 --%>
	<%
	//获取参数
	String uname = request.getParameter("uname");
	//获取request作用域
	String upwd = (String)request.getAttribute("upwd");
	
	//输出内容
	out.print(uname);
	out.print("---------");
	out.print(upwd);
	
	%>
</body>
</html>